package com.small.nacos.config.server.service;


import com.small.nacos.common.notify.NotifyCenter;
import com.small.nacos.config.server.model.event.ConfigDataChangeEvent;
import com.small.nacos.sys.env.EnvUtil;
import com.small.nacos.sys.utils.PropertyUtil;

public class ConfigChangePublisher {

    public static void notifyConfigChange(ConfigDataChangeEvent event) {
        //如果是嵌入式存储 并且 不是单应用启动
        if (PropertyUtil.isEmbeddedStorage() && !EnvUtil.getStandaloneMode()) {
            return;
        }
        NotifyCenter.publishEvent(event);
    }
}
